package com.vanysoft.business.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vanysoft.framework.config.database.BaseEntity;

import java.util.List;

/**
 * 角色表
 *
 * @author qi_ma
 */


@TableName("SYS_ROLE")
public class Role extends BaseEntity<Role> {
    private static final long serialVersionUID = -8889735751910957263L;
    private String roleName;
    private String description;
    private String isEnable;
    @TableField("IS_ADMIN")
    private Boolean admin;
    @TableField("IS_DEFAULT")
    private Boolean isDefault;
    private String owner;
    @TableField(exist = false)
    private List<UserInfo> userInfos;
    @TableField(exist = false)
    private String ownerName;
    private String[] orgCodes;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public Boolean getAdmin() {
        return admin;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public List<UserInfo> getUserInfos() {
        return userInfos;
    }

    public void setUserInfos(List<UserInfo> userInfos) {
        this.userInfos = userInfos;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String[] getOrgCodes() {
        return orgCodes;
    }

    public void setOrgCodes(String[] orgCodes) {
        this.orgCodes = orgCodes;
    }

    public Boolean getDefault() {
        return isDefault;
    }

    public void setDefault(Boolean aDefault) {
        isDefault = aDefault;
    }
}
